home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / AppleShare IP SDK / ASIP Registry / Headers / AppleShareMailServerRegistry.p < prev    next >
Encoding:
Text File  |  1999-05-21  |  3.6 KB  |  120 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        AppleShareMailServerRegistry.p
  3.  
  4.      Contains:    Attributes stored by the ASIP Mail Server in the Registry.
  5.  
  6.      Version:    Technology:    AppleShare IP 6.0
  7.                  Release:    ASIP 6.2 SDK - Friday, April 2, 1999 9:36:27 AM
  8.  
  9.      Copyright:    © 1996-1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT AppleShareMailServerRegistry;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __APPLESHAREMAILSERVERREGISTRY__}
  27. {$SETC __APPLESHAREMAILSERVERREGISTRY__ := 1}
  28.  
  29. {$I+}
  30. {$SETC AppleShareMailServerRegistryIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __APPLESHAREREGISTRY__}
  34. {$I AppleShareRegistry.p}
  35. {$ENDC}
  36.  
  37.  
  38. {$PUSH}
  39. {$ALIGN MAC68K}
  40. {$LibExport+}
  41.  
  42. {
  43.    *********
  44.    Constants
  45.    *********
  46. }
  47. {  Signature, type... }
  48.  
  49. CONST
  50.     kMUMailServerSignature        = 'mail';
  51.     kMU60Attributes                = 'mU60';                        {  MailUser    6.0 }
  52.     kMUHomeServer                = 'mUhs';                        {  Home server record }
  53.  
  54.     kMUHomeServerTag            = 'Acct';
  55.  
  56. {  ASDSharedAttributeConstants  }
  57.     kMUMaxSMTPForwardLength        = 255;
  58.     kMUFingerprintLength        = 16;
  59.  
  60. {
  61.    ***************
  62.    User Attributes
  63.    ***************
  64. }
  65.  
  66. {  ASDMailUserFlags }
  67.     KMUUserEnableMask            = $0000000F;
  68.     kMUAPOPRequired                = $00000004;                    {  User must use APOP to authenticate }
  69.     kMUForwardingMask            = $000000F0;                    {  Mask to get forwarding options }
  70.     kMUNoForwarding                = $00000010;                    {  enabled mail...this bit should be set.. }
  71.     kMUForwardSMTP                = $00000020;                    {  Forward mail to SMTP address }
  72.     kMUForwardATalk                = $00000040;                    {  Forward mail to AppleTalk SMTP server }
  73.                                                                 {  6.0 flag additions }
  74.     kMUIMAPPOPFlagsMask            = $00000F00;
  75.     kMUPOPEnabled                = $00000100;                    {  User can connect over POP3 or PASS }
  76.     kMUIMAPEnabled                = $00000200;                    {  User can connect over IMAP or PASS }
  77.     kMUNotificationMask            = $0000F000;
  78.     kMUNotificationON            = $00001000;                    {  User wants mail notification }
  79.     kMUUseLastIPAddr            = $00002000;                    {  Use last IP Address for notification - notifyIPAddress is ignored.. }
  80.     kMUUseSpecificIPAddr        = $00004000;                    {  field notifyIPAddress is used...and kMUUseLastIPAddr should cleared.. }
  81.     kMUSharedBoxFlagMask        = $000F0000;
  82.     kMUSeparatePOPAndIMAP        = $00010000;                    {  User can connect over POP3, IMAP or PASS with separate inbox }
  83.     kMUShowPOPInIMAP            = $00020000;                    {  User can connect over POP3, IMAP or PASS with separate inbox }
  84.                                                                 {  legacy, do not use beyond 5.0.x versions.. }
  85.     kMUMailEnabled                = $00000001;                    {  Was kMEEnabled in version 1 - ignore, should be zero for 6.0.. }
  86.     kMULoginEnabled                = $00000002;                    {  User can connect over POP3 or PASS  - ignore, should be zero for 6.0.. }
  87.  
  88.  
  89. TYPE
  90.     MU60AttributesPtr = ^MU60Attributes;
  91.     MU60Attributes = RECORD
  92.         version:                UInt32;
  93.         mailUserFlags:            UInt32;
  94.         atalkForwardName:        Str32Field;
  95.         atalkForwardServer:        Str32Field;
  96.         atalkForwardZone:        Str32Field;
  97.         smtpForward:            PACKED ARRAY [0..255] OF CHAR;
  98.         fingerprint:            PACKED ARRAY [0..15] OF CHAR;            {  initialize to all zeros when creating attribute }
  99.         notifyIPAddress:        UInt32;
  100.     END;
  101.  
  102.     MUHomeServerPtr = ^MUHomeServer;
  103.     MUHomeServer = RECORD
  104.         tag:                    UInt32;                                    {  kMUHomeServerTag }
  105.         offset:                    UInt32;                                    {  Unused set to 0 }
  106.         data:                    Str255;                                    {  home server name, as a pascal string }
  107.         reserved:                Str255;                                    {  set to 0 }
  108.     END;
  109.  
  110. {$ALIGN RESET}
  111. {$POP}
  112.  
  113. {$SETC UsingIncludes := AppleShareMailServerRegistryIncludes}
  114.  
  115. {$ENDC} {__APPLESHAREMAILSERVERREGISTRY__}
  116.  
  117. {$IFC NOT UsingIncludes}
  118.  END.
  119. {$ENDC}
  120.